<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="atsuccess" content="atsuccess" />
     <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/css/style.css" />
     <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/css/ddsmoothmenu.css" />
     <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/css/ddsmoothmenu-v.css" />
     <link rel="stylesheet" type="text/css" href="<?php echo base_url();?>public/css/style.css" />
     <script type="text/javascript" src="<?php echo base_url();?>public/js/site/jquery-1.7.2.1.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>public/js/ddsmoothmenu.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>public/js/ddaccordion.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>public/js/jqFancyTransitions.1.8.min.js"></script>
    <script type="text/javascript" src="<?php echo base_url();?>public/js/menu.js"></script>
	<title></title>
</head>

<body>
    <div id="wrapper">
    <div id="header-wrapper">
        <div id="header">
        
        
            <img src="<?php echo base_url();?>public/images/logo.png" width="163" height="116" class="logo"/>
            <div id="lang">
                <a href="#"><img src="<?php echo base_url();?>public/images/Vi.png"/></a>
                <a href="#"><img src="<?php echo base_url();?>public/images/En.png"/></a>
                <br />
                <br />
                <a href="<?php echo base_url();?>dang-ky">Đăng ký</a> 
                    |
                <a href="#">Đăng nhập</a>
            </div><!-- End lang -->
            <div id="menu-top">
            
            
                <ul id="menu-top-ul">
                    <li class="menu-top-li"><a href="<?php echo base_url();?>">Trang chủ</a></li>
                    <?php 
                        foreach($menu_top as $top)
                        { 
                            if($top->menu_parent==0) { ?>
                                    <li class="menu-top-li">
                                    <div id="smoothmenu1" class="ddsmoothmenu">
                                        <ul>
                                        <li class="parent"><a class="parent-li" href="<?php echo base_url().$top->menu_link;?>"><?php echo $top->menu_title;?></a>
                                          <?php 
                                            
                                                $sub=$this->menu_model->getMenuByParent($top->menu_id);
                                                
                                                if(!empty($sub))
                                                {
                                                    echo '<ul class="children">';
                                                    
                                                    foreach($sub as $sb)
                                                    {
                                                        echo '<li><a href="'.base_url().$sb->menu_link.'">'.$sb->menu_title.'</a></li>';
                                                    }
                                                    echo "</ul>";
                                                }
                                               
                                            echo "</ul></div></li>";
                                    }?>  
                            
                     <?php }?>
                    <!--<li class="menu-top-li">
                            <div id="smoothmenu1" class="ddsmoothmenu">
                            <ul>
                                <li class="parent"><a class="parent-li" href="#">Giới thiệu</a>
                                  <ul class="children">
                                  <li><a href="#">Sub Item 1.1</a></li>
                                  <li><a href="#">Sub Item 1.2</a></li>
                                  <li><a href="#">Sub Item 1.3</a></li>
                                  <li><a href="#">Sub Item 1.4</a></li>
                                  <li><a href="#">Sub Item 1.2</a></li>
                                  <li><a href="#">Sub Item 1.3</a></li>
                                  <li><a href="#">Sub Item 1.4</a></li>
                                  </ul>
                                </li>
                            </ul>
                        </div>
                    
                    </li> -->
                </ul>
            </div><!-- End menu-top-->
        </div><!-- End header -->
    </div> <!-- End header-wrapper -->
        <div id="main">
            <div id="left">
                <div class="menu-left">
                    <h3 class="title-left">Danh mục dự án</h3>
                        <?php foreach($menu_left as $ml){ ?>
                              <?php
                                $has_parent=$this->menu_model->getMenuByParent($ml->menu_id);
                            if($ml->menu_parent==0){?>
                            <a class="menu-project-li <?php if(count($has_parent)>0) echo "submenuheader";?>"  href="<?php echo base_url().$ml->menu_link;?>"><?php echo $ml->menu_title;?></a>  
                                <?php 
                                    if(count($has_parent)>0)
                                    {
                                        echo '<div class="submenu"><ul class="submenu-ul">';
                                        foreach($has_parent as $has_item)
                                        {
                                            echo '<li class="submenu-li"><a href="'.base_url().$has_item->menu_link.'">'.$has_item->menu_title.'</a></li>';
                                        }
                                        echo '</ul></div>';
                                    }
                                
                                ?>
                                
                            
                        <?php 
                            }
                         } ?>
                        <!--<li class="menu-project-li"><a href="">Nhu yếu phẩm</a></li>
                        <li class="menu-project-li"><a href="">Công nghệ xây dựng mới</a></li>
                        <li class="menu-project-li"><a href="">Công nghệ an ninh<img src="<?php //echo base_url();?>public/images/arrow-more.png" width="19" height="21" class="arrow-more"/></a>
                        </li>
                        <li class="menu-project-li"><a href="">Chương trình tín dụng GSM - 102</a></li>
                        <li class="menu-project-li"><a href="">Dự án khác</a></li> -->
                
                </div><!-- End menu-left -->
                
                <!-- for ho tro truc tuyen -->
                
                <div class="menu-left">
                    <h3 class="title-left">hỗ trợ trực tuyến</h3>
                    <div class="content-support">
                        <h3 class="name-support">Support1 (0906.366.980)</h3>
                        <table width="160" border="0" cellpadding="0" cellspacing="0" class="tb-support">
                            <tr height="30px">
                                <td width="60px" align="right"><img src="<?php echo base_url();?>public/images/yahoo.png" width="60" height="34" /></td>
                                <td><a href="ymsgr:sendIM?phamhoakhanh92"><img width="90" height="20" border="0" src="http://opi.yahoo.com/online?u=phamhoakhanh92&m=g&t=2"/></a></td>
                            </tr>
                            <tr height="30px">
                                <td width="60px" align="right"><img src="<?php echo base_url();?>public/images/skype.png" width="60" height="30" /></td>
                                <td><a href="skype:phamhoakhanh92?chat"><img src="<?php echo base_url();?>public/images/skype-online.png" width="90" height="26" /></a></td>
                            </tr>
                            <tr height="10px">
                                <td colspan="2" style="border-bottom:1px #dadada solid;"></td>
                            </tr>
                        </table>
                        
                        <!-- for support 2 -->
                        <h3 class="name-support">Support2 (0906.366.980)</h3>
                        <table width="160" border="0" cellpadding="0" cellspacing="0" class="tb-support">
                            <tr>
                                <td width="60px" align="right"><img src="<?php echo base_url();?>public/images/yahoo.png" width="60" height="34" /></td>
                                <td><a href="ymsgr:sendIM?phamhoakhanh92"><img width="90" height="20" border="0" src="http://opi.yahoo.com/online?u=phamhoakhanh92&m=g&t=2"/></a></td>
                            </tr>
                            <tr>
                                <td width="60px" align="right"><img src="<?php echo base_url();?>public/images/skype.png" width="60" height="30" /></td>
                                <td><a href="skype:phamhoakhanh92?chat"><img src="<?php echo base_url();?>public/images/skype-online.png" width="90" height="26" /></a></td>
                            </tr>
                            <tr height="10px">
                                <td colspan="2" style="border-bottom:1px #dadada solid;"></td>
                            </tr>
                        </table>
                        
                        <h3 class="support-hotline">HOTLINE:    0906.366.980</h3>
                    </div>
                </div><!-- End menu-left -->
                
                
                <!-- for online-->
                <div class="menu-left">
                    <h3 class="title-left">Thống kê truy cập</h3>
                    <div class="content-support">
                        <table width="200" border="0" cellpadding="0" cellspacing="0" class="tb-support2">
                            <tr height="30px">
                                <td width="60px" align="center"><img src="<?php echo base_url();?>public/images/on.png" width="42" height="35" /></td>
                                <td align="left" width="140px">Đang trực tuyến:10</td>
                            </tr>
                            <tr height="30px">
                                <td width="60px" align="center"><img src="<?php echo base_url();?>public/images/total-on.png" width="41" height="39" /></td>
                                <td align="left" width="140px">Tổng số truy cập:1110</td>
                            </tr>
                            
                        </table>
                    </div>
                    
                </div><!-- End menu-left -->
                <!-- Added menu- product_price -->
                <!-- for product price -->
                
                <!-- for dowwnload product price -->
                <div class="menu-left">
                    <h3 class="title-left">Download báo giá</h3>
                </div> <!-- End menu- left--> 
                
                
            </div><!-- End left -->
            <div id="right">
                <div id="slider">
                    
                        <img src="<?php echo base_url();?>public/images/slideshow1.png" width="744" height="292" />
                       <img src="<?php echo base_url();?>public/images/product2.png" width="744" height="292" />
                        <img src="<?php echo base_url();?>public/images/product3.png" width="744" height="292" />
            
                   
                    </div>
                
                
                 <div id="content">
                    
                    <?php echo $view_content;?>
                </div><!-- End content -->
            </div><!-- End right -->
        </div><!-- End main -->
        
    </div><!-- End wrapper -->
    <div id="footer">
        <div id="footer-content">
            <ul id="footer-ul">
                <li><a href="#">Trang chủ</a></li>
                <li class="line"></li>
                <li><a href="#">Giới thiệu</a></li>
                <li class="line"></li>
                <li><a href="#">Dự án</a></li>
                <li class="line"></li>
                <li><a href="#">Đại lý</a></li>
                <li class="line"></li>
                <li><a href="#">Tin tức</a></li>
                <li class="line"></li>
                <li><a href="#">Liên hệ</a></li>
            </ul>
            <br />
            <span class="copyright">Copyright © 2012 4MJSC, All right reserved</span>
        </div><!-- End footer-content-->
    </div><!-- End footer -->


</body>
</html>